package request

import (
	"gitee.com/cjsn/topsdk/ability254/domain"
	"gitee.com/cjsn/topsdk/util"
)

type TmallServicecenterWorkcardLogisticsinfoCreateRequest struct {
	/*
	   创建服务履约物流单信息     */
	CreateLogisticsOrderRequest *domain.TmallServicecenterWorkcardLogisticsinfoCreateCreateLogisticsOrderRequest `json:"create_logistics_order_request" required:"true" `
}

func (s *TmallServicecenterWorkcardLogisticsinfoCreateRequest) SetCreateLogisticsOrderRequest(v domain.TmallServicecenterWorkcardLogisticsinfoCreateCreateLogisticsOrderRequest) *TmallServicecenterWorkcardLogisticsinfoCreateRequest {
	s.CreateLogisticsOrderRequest = &v
	return s
}

func (req *TmallServicecenterWorkcardLogisticsinfoCreateRequest) ToMap() map[string]interface{} {
	paramMap := make(map[string]interface{})
	if req.CreateLogisticsOrderRequest != nil {
		paramMap["create_logistics_order_request"] = util.ConvertStruct(*req.CreateLogisticsOrderRequest)
	}
	return paramMap
}

func (req *TmallServicecenterWorkcardLogisticsinfoCreateRequest) ToFileMap() map[string]interface{} {
	fileMap := make(map[string]interface{})
	return fileMap
}
